package day0709;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        //1.定义变量 username  password， 用nextLine()输入两个String数据赋值给两个变量
        Scanner s=new Scanner(System.in);
        String username=s.nextLine();
        String password=s.nextLine();
        judge(username,password);
    }


    static void judge(String account, String pwd){//传入账号, 密码
        if(account.equals("zs123")&& pwd.equals("123456")){
            System.out.println("登录成功");
        }else{
            System.out.println("登录失败");
        }
    }

}
